#define SOL_ALL_SAFETIES_ON 1
#include <sol/sol.hpp>

#include "string.h"


#include "./../luaQt.h"
#include "./../luaQPen.h"

/* function to release collected object via destructor */
namespace LuaQt{
	void open_luaQPen(sol::table& module) {
		module.set_function("NewQPen", []() { return QPen(); });
		module.new_usertype<QPen>("QPen"
				,"width", sol::property( &QPen::width, &QPen::setWidth)
				,"color", sol::property( &QPen::color, &QPen::setColor)
				,"brush", sol::property( &QPen::brush, &QPen::setBrush)
				,"capStyle", sol::property( &QPen::capStyle, &QPen::setCapStyle)

		);
	}
};
